<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>pybindgen.typehandlers.base.ParseTupleParameters</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pybindgen-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="pybindgen-module.html">Package&nbsp;pybindgen</a> ::
        <a href="pybindgen.typehandlers-module.html">Package&nbsp;typehandlers</a> ::
        <a href="pybindgen.typehandlers.base-module.html">Module&nbsp;base</a> ::
        Class&nbsp;ParseTupleParameters
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="pybindgen.typehandlers.base.ParseTupleParameters-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class ParseTupleParameters</h1><p class="nomargin-top"><span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#ParseTupleParameters">source&nbsp;code</a></span></p>
<center>
<center>  <map id="uml_class_diagram_for_pybindge_81" name="uml_class_diagram_for_pybindge_81">
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#__init__" title="pybindgen.typehandlers.base.ParseTupleParameters.__init__" alt="" coords="17,36,633,55"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#clear" title="pybindgen.typehandlers.base.ParseTupleParameters.clear" alt="" coords="17,55,633,73"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#add_parameter" title="Adds a new parameter specification" alt="" coords="17,73,633,92"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#is_empty" title="pybindgen.typehandlers.base.ParseTupleParameters.is_empty" alt="" coords="17,92,633,111"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#get_parameters" title="returns a list of parameters to pass into a PyArg_ParseTuple&#45;style function call, the first paramter in the list being the template string." alt="" coords="17,111,633,129"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#get_keywords" title="returns list of keywords (parameter names), or None if none of the &#160;parameters had a name; should only be called if names were given for all &#160;parameters or none of them." alt="" coords="17,129,633,148"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html" title="Object to keep track of PyArg_ParseTuple (or similar) parameters" alt="" coords="16,11,635,149"/>
</map>
  <img src="uml_class_diagram_for_pybindge_81.gif" alt='' usemap="#uml_class_diagram_for_pybindge_81" ismap="ismap" class="graph-without-title" />
</center>
</center>
<hr />
<p>Object to keep track of PyArg_ParseTuple (or similar) parameters</p>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Instance Methods</span></td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#ParseTupleParameters.__init__">source&nbsp;code</a></span>
            <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for___init___60-summary-div');return false;">call&nbsp;graph</a></span>&nbsp;
          </td>
        </tr>
      </table>
      <div style="display:none" id="call_graph_for___init___60-summary-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for___init___60" name="call_graph_for___init___60">
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#__init__" title="ForwardWrapperBase.__init__()" alt="" coords="7,5,316,37"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#__init__" title="__init__()" alt="" coords="367,33,471,65"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#__init__" title="ReverseWrapperBase.__init__()" alt="" coords="8,61,315,93"/>
</map>
  <img src="call_graph_for___init___60.gif" alt='' usemap="#call_graph_for___init___60" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="clear"></a><span class="summary-sig-name">clear</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#ParseTupleParameters.clear">source&nbsp;code</a></span>
            <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for_clear_4-summary-div');return false;">call&nbsp;graph</a></span>&nbsp;
          </td>
        </tr>
      </table>
      <div style="display:none" id="call_graph_for_clear_4-summary-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for_clear_4" name="call_graph_for_clear_4">
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#reset_code_generation_state" title="ForwardWrapperBase.reset_code_generation_state()" alt="" coords="5,5,512,37"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#clear" title="clear()" alt="" coords="560,33,640,65"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#reset_code_generation_state" title="ReverseWrapperBase.reset_code_generation_state()" alt="" coords="7,61,511,93"/>
</map>
  <img src="call_graph_for_clear_4.gif" alt='' usemap="#call_graph_for_clear_4" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#add_parameter" class="summary-sig-name">add_parameter</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">param_template</span>,
        <span class="summary-sig-arg">param_values</span>,
        <span class="summary-sig-arg">param_name</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">prepend</span>=<span class="summary-sig-default">False</span>,
        <span class="summary-sig-arg">optional</span>=<span class="summary-sig-default">False</span>)</span><br />
      Adds a new parameter specification</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#ParseTupleParameters.add_parameter">source&nbsp;code</a></span>
            <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for_add_parameter_2-summary-div');return false;">call&nbsp;graph</a></span>&nbsp;
          </td>
        </tr>
      </table>
      <div style="display:none" id="call_graph_for_add_parameter_2-summary-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for_add_parameter_2" name="call_graph_for_add_parameter_2">
<area shape="rect" href="pybindgen.container.ContainerParameter-class.html#convert_python_to_c" title="container.ContainerParameter.convert_python_to_c()" alt="" coords="76,20,585,52"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#add_parameter" title="add_parameter()" alt="" coords="705,748,879,780"/>
<area shape="rect" href="pybindgen.container.ContainerPtrParameter-class.html#convert_python_to_c" title="container.ContainerPtrParameter.convert_python_to_c()" alt="" coords="61,76,600,108"/>
<area shape="rect" href="pybindgen.container.ContainerRefParameter-class.html#convert_c_to_python" title="container.ContainerRefParameter.convert_c_to_python()" alt="" coords="61,132,600,164"/>
<area shape="rect" href="pybindgen.container.ContainerRefParameter-class.html#convert_python_to_c" title="container.ContainerRefParameter.convert_python_to_c()" alt="" coords="61,188,600,220"/>
<area shape="rect" href="pybindgen.container.ContainerReturnValue-class.html#convert_python_to_c" title="container.ContainerReturnValue.convert_python_to_c()" alt="" coords="65,244,596,276"/>
<area shape="rect" href="pybindgen.cppclass_typehandlers.CppClassParameter-class.html#convert_python_to_c" title="cppclass_typehandlers.CppClassParameter.convert_python_to_c()" alt="" coords="21,300,640,332"/>
<area shape="rect" href="pybindgen.cppclass_typehandlers.CppClassPtrParameter-class.html#convert_python_to_c" title="cppclass_typehandlers.CppClassPtrParameter.convert_python_to_c()" alt="" coords="7,356,655,388"/>
<area shape="rect" href="pybindgen.cppclass_typehandlers.CppClassRefParameter-class.html#convert_python_to_c" title="cppclass_typehandlers.CppClassRefParameter.convert_python_to_c()" alt="" coords="7,412,655,444"/>
<area shape="rect" href="pybindgen.cppclass_typehandlers.CppClassReturnValue-class.html#convert_python_to_c" title="cppclass_typehandlers.CppClassReturnValue.convert_python_to_c()" alt="" coords="11,468,651,500"/>
<area shape="rect" href="pybindgen.typehandlers.doubletype.DoubleParam-class.html#convert_python_to_c" title="doubletype.DoubleParam.convert_python_to_c()" alt="" coords="99,524,563,556"/>
<area shape="rect" href="pybindgen.typehandlers.floattype.FloatPtrParam-class.html#convert_python_to_c" title="floattype.FloatPtrParam.convert_python_to_c()" alt="" coords="103,580,559,612"/>
<area shape="rect" href="pybindgen.typehandlers.floattype.FloatReturn-class.html#convert_python_to_c" title="floattype.FloatReturn.convert_python_to_c()" alt="" coords="115,636,547,668"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.IntParam-class.html#convert_python_to_c" title="inttype.IntParam.convert_python_to_c()" alt="" coords="136,692,525,724"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.IntRefParam-class.html#convert_python_to_c" title="inttype.IntRefParam.convert_python_to_c()" alt="" coords="121,748,540,780"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.IntReturn-class.html#convert_python_to_c" title="inttype.IntReturn.convert_python_to_c()" alt="" coords="133,804,528,836"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.SizeTParam-class.html#convert_python_to_c" title="inttype.SizeTParam.convert_python_to_c()" alt="" coords="123,860,539,892"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.UInt16Return-class.html#convert_python_to_c" title="inttype.UInt16Return.convert_python_to_c()" alt="" coords="115,916,547,948"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.UInt8Return-class.html#convert_python_to_c" title="inttype.UInt8Return.convert_python_to_c()" alt="" coords="120,972,541,1004"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.UnsignedIntParam-class.html#convert_python_to_c" title="inttype.UnsignedIntParam.convert_python_to_c()" alt="" coords="93,1028,568,1060"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.UnsignedIntReturn-class.html#convert_python_to_c" title="inttype.UnsignedIntReturn.convert_python_to_c()" alt="" coords="91,1084,571,1116"/>
<area shape="rect" href="pybindgen.typehandlers.pyobjecttype.PyObjectParam-class.html#convert_python_to_c" title="pyobjecttype.PyObjectParam.convert_python_to_c()" alt="" coords="81,1140,580,1172"/>
<area shape="rect" href="pybindgen.typehandlers.pyobjecttype.PyObjectReturnValue-class.html#convert_python_to_c" title="pyobjecttype.PyObjectReturnValue.convert_python_to_c()" alt="" coords="53,1196,608,1228"/>
<area shape="rect" href="pybindgen.typehandlers.stringtype.CStringParam-class.html#convert_python_to_c" title="stringtype.CStringParam.convert_python_to_c()" alt="" coords="100,1252,561,1284"/>
<area shape="rect" href="pybindgen.typehandlers.stringtype.StdStringParam-class.html#convert_python_to_c" title="stringtype.StdStringParam.convert_python_to_c()" alt="" coords="91,1308,571,1340"/>
<area shape="rect" href="pybindgen.typehandlers.stringtype.StdStringRefParam-class.html#convert_python_to_c" title="stringtype.StdStringRefParam.convert_python_to_c()" alt="" coords="77,1364,584,1396"/>
<area shape="rect" href="pybindgen.typehandlers.stringtype.StdStringReturn-class.html#convert_python_to_c" title="stringtype.StdStringReturn.convert_python_to_c()" alt="" coords="89,1420,572,1452"/>
<area shape="rect" href="pybindgen.typehandlers.voidtype.VoidReturn-class.html#convert_python_to_c" title="voidtype.VoidReturn.convert_python_to_c()" alt="" coords="120,1476,541,1508"/>
</map>
  <img src="call_graph_for_add_parameter_2.gif" alt='' usemap="#call_graph_for_add_parameter_2" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="is_empty"></a><span class="summary-sig-name">is_empty</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#ParseTupleParameters.is_empty">source&nbsp;code</a></span>
            <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for_is_empty-summary-div');return false;">call&nbsp;graph</a></span>&nbsp;
          </td>
        </tr>
      </table>
      <div style="display:none" id="call_graph_for_is_empty-summary-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for_is_empty" name="call_graph_for_is_empty">
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#get_parameters" title="get_parameters()" alt="" coords="540,5,719,37"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#is_empty" title="is_empty()" alt="" coords="373,5,491,37"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#generate" title="ReverseWrapperBase.generate()" alt="" coords="5,5,325,37"/>
</map>
  <img src="call_graph_for_is_empty.gif" alt='' usemap="#call_graph_for_is_empty" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="get_parameters"></a><span class="summary-sig-name">get_parameters</span>(<span class="summary-sig-arg">self</span>)</span><br />
      returns a list of parameters to pass into a PyArg_ParseTuple-style 
      function call, the first paramter in the list being the template 
      string.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#ParseTupleParameters.get_parameters">source&nbsp;code</a></span>
            <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for_get_parameters_2-summary-div');return false;">call&nbsp;graph</a></span>&nbsp;
          </td>
        </tr>
      </table>
      <div style="display:none" id="call_graph_for_get_parameters_2-summary-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for_get_parameters_2" name="call_graph_for_get_parameters_2">
<area shape="rect" href="pybindgen.converter_functions.PythonToCConverter-class.html#generate" title="converter_functions.PythonToCConverter.generate()" alt="" coords="5,5,509,37"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#get_parameters" title="get_parameters()" alt="" coords="559,173,737,205"/>
<area shape="rect" href="pybindgen.cppattribute.CppInstanceAttributeSetter-class.html#generate" title="cppattribute.CppInstanceAttributeSetter.generate()" alt="" coords="9,61,505,93"/>
<area shape="rect" href="pybindgen.cppattribute.CppStaticAttributeSetter-class.html#generate" title="cppattribute.CppStaticAttributeSetter.generate()" alt="" coords="21,117,493,149"/>
<area shape="rect" href="pybindgen.cppmethod.CppConstructor-class.html#generate" title="cppmethod.CppConstructor.generate()" alt="" coords="71,173,444,205"/>
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#generate_body" title="ForwardWrapperBase.generate_body()" alt="" coords="69,229,445,261"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#is_empty" title="is_empty()" alt="" coords="199,285,316,317"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#generate" title="ReverseWrapperBase.generate()" alt="" coords="97,341,417,373"/>
</map>
  <img src="call_graph_for_get_parameters_2.gif" alt='' usemap="#call_graph_for_get_parameters_2" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="get_keywords"></a><span class="summary-sig-name">get_keywords</span>(<span class="summary-sig-arg">self</span>)</span><br />
      returns list of keywords (parameter names), or None if none of the 
      parameters had a name; should only be called if names were given for 
      all parameters or none of them.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#ParseTupleParameters.get_keywords">source&nbsp;code</a></span>
            <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for_get_keywords-summary-div');return false;">call&nbsp;graph</a></span>&nbsp;
          </td>
        </tr>
      </table>
      <div style="display:none" id="call_graph_for_get_keywords-summary-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for_get_keywords" name="call_graph_for_get_keywords">
<area shape="rect" href="pybindgen.cppmethod.CppConstructor-class.html#generate" title="cppmethod.CppConstructor.generate()" alt="" coords="8,5,381,37"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#get_keywords" title="get_keywords()" alt="" coords="433,33,596,65"/>
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#generate_body" title="ForwardWrapperBase.generate_body()" alt="" coords="7,61,383,93"/>
</map>
  <img src="call_graph_for_get_keywords.gif" alt='' usemap="#call_graph_for_get_keywords" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__delattr__</code>,
      <code>__format__</code>,
      <code>__getattribute__</code>,
      <code>__hash__</code>,
      <code>__new__</code>,
      <code>__reduce__</code>,
      <code>__reduce_ex__</code>,
      <code>__repr__</code>,
      <code>__setattr__</code>,
      <code>__sizeof__</code>,
      <code>__str__</code>,
      <code>__subclasshook__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== PROPERTIES ==================== -->
<a name="section-Properties"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Properties</span></td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__class__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Method Details</span></td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#ParseTupleParameters.__init__">source&nbsp;code</a></span>&nbsp;
    <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for___init___60-div');return false;">call&nbsp;graph</a></span>&nbsp;</td>
  </tr></table>
  <div style="display:none" id="call_graph_for___init___60-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for___init___60" name="call_graph_for___init___60">
<area shape="rect" href="pybindgen.typehandlers.base.ForwardWrapperBase-class.html#__init__" title="ForwardWrapperBase.__init__()" alt="" coords="7,5,316,37"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#__init__" title="__init__()" alt="" coords="367,33,471,65"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#__init__" title="ReverseWrapperBase.__init__()" alt="" coords="8,61,315,93"/>
</map>
  <img src="call_graph_for___init___60.gif" alt='' usemap="#call_graph_for___init___60" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

  <pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>tuple_params = ParseTupleParameters()
<span class="py-prompt">&gt;&gt;&gt; </span>tuple_params.add_parameter(<span class="py-string">'i'</span>, [<span class="py-string">'&amp;foo'</span>], <span class="py-string">'foo'</span>)
<span class="py-output">1</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>tuple_params.add_parameter(<span class="py-string">'s'</span>, [<span class="py-string">'&amp;bar'</span>], <span class="py-string">'bar'</span>, optional=True)
<span class="py-output">2</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>tuple_params.get_parameters()
<span class="py-output">['&quot;i|s&quot;', '&amp;foo', '&amp;bar']</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>tuple_params.get_keywords()
<span class="py-output">['foo', 'bar']</span></pre>
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>tuple_params = ParseTupleParameters()
<span class="py-prompt">&gt;&gt;&gt; </span>tuple_params.add_parameter(<span class="py-string">'i'</span>, [<span class="py-string">'&amp;foo'</span>], <span class="py-string">'foo'</span>)
<span class="py-output">1</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>tuple_params.add_parameter(<span class="py-string">'s'</span>, [<span class="py-string">'&amp;bar'</span>], <span class="py-string">'bar'</span>, prepend=True)
<span class="py-output">2</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>tuple_params.get_parameters()
<span class="py-output">['&quot;si&quot;', '&amp;bar', '&amp;foo']</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>tuple_params.get_keywords()
<span class="py-output">['bar', 'foo']</span></pre>
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>tuple_params = ParseTupleParameters()
<span class="py-prompt">&gt;&gt;&gt; </span>tuple_params.add_parameter(<span class="py-string">'i'</span>, [<span class="py-string">'&amp;foo'</span>])
<span class="py-output">1</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">print</span> tuple_params.get_keywords()
<span class="py-output">None</span></pre>
  <dl class="fields">
    <dt>Overrides:
        object.__init__
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="add_parameter"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">add_parameter</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">param_template</span>,
        <span class="sig-arg">param_values</span>,
        <span class="sig-arg">param_name</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">prepend</span>=<span class="sig-default">False</span>,
        <span class="sig-arg">optional</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#ParseTupleParameters.add_parameter">source&nbsp;code</a></span>&nbsp;
    <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for_add_parameter_2-div');return false;">call&nbsp;graph</a></span>&nbsp;</td>
  </tr></table>
  <div style="display:none" id="call_graph_for_add_parameter_2-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for_add_parameter_2" name="call_graph_for_add_parameter_2">
<area shape="rect" href="pybindgen.container.ContainerParameter-class.html#convert_python_to_c" title="container.ContainerParameter.convert_python_to_c()" alt="" coords="76,20,585,52"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#add_parameter" title="add_parameter()" alt="" coords="705,748,879,780"/>
<area shape="rect" href="pybindgen.container.ContainerPtrParameter-class.html#convert_python_to_c" title="container.ContainerPtrParameter.convert_python_to_c()" alt="" coords="61,76,600,108"/>
<area shape="rect" href="pybindgen.container.ContainerRefParameter-class.html#convert_c_to_python" title="container.ContainerRefParameter.convert_c_to_python()" alt="" coords="61,132,600,164"/>
<area shape="rect" href="pybindgen.container.ContainerRefParameter-class.html#convert_python_to_c" title="container.ContainerRefParameter.convert_python_to_c()" alt="" coords="61,188,600,220"/>
<area shape="rect" href="pybindgen.container.ContainerReturnValue-class.html#convert_python_to_c" title="container.ContainerReturnValue.convert_python_to_c()" alt="" coords="65,244,596,276"/>
<area shape="rect" href="pybindgen.cppclass_typehandlers.CppClassParameter-class.html#convert_python_to_c" title="cppclass_typehandlers.CppClassParameter.convert_python_to_c()" alt="" coords="21,300,640,332"/>
<area shape="rect" href="pybindgen.cppclass_typehandlers.CppClassPtrParameter-class.html#convert_python_to_c" title="cppclass_typehandlers.CppClassPtrParameter.convert_python_to_c()" alt="" coords="7,356,655,388"/>
<area shape="rect" href="pybindgen.cppclass_typehandlers.CppClassRefParameter-class.html#convert_python_to_c" title="cppclass_typehandlers.CppClassRefParameter.convert_python_to_c()" alt="" coords="7,412,655,444"/>
<area shape="rect" href="pybindgen.cppclass_typehandlers.CppClassReturnValue-class.html#convert_python_to_c" title="cppclass_typehandlers.CppClassReturnValue.convert_python_to_c()" alt="" coords="11,468,651,500"/>
<area shape="rect" href="pybindgen.typehandlers.doubletype.DoubleParam-class.html#convert_python_to_c" title="doubletype.DoubleParam.convert_python_to_c()" alt="" coords="99,524,563,556"/>
<area shape="rect" href="pybindgen.typehandlers.floattype.FloatPtrParam-class.html#convert_python_to_c" title="floattype.FloatPtrParam.convert_python_to_c()" alt="" coords="103,580,559,612"/>
<area shape="rect" href="pybindgen.typehandlers.floattype.FloatReturn-class.html#convert_python_to_c" title="floattype.FloatReturn.convert_python_to_c()" alt="" coords="115,636,547,668"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.IntParam-class.html#convert_python_to_c" title="inttype.IntParam.convert_python_to_c()" alt="" coords="136,692,525,724"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.IntRefParam-class.html#convert_python_to_c" title="inttype.IntRefParam.convert_python_to_c()" alt="" coords="121,748,540,780"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.IntReturn-class.html#convert_python_to_c" title="inttype.IntReturn.convert_python_to_c()" alt="" coords="133,804,528,836"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.SizeTParam-class.html#convert_python_to_c" title="inttype.SizeTParam.convert_python_to_c()" alt="" coords="123,860,539,892"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.UInt16Return-class.html#convert_python_to_c" title="inttype.UInt16Return.convert_python_to_c()" alt="" coords="115,916,547,948"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.UInt8Return-class.html#convert_python_to_c" title="inttype.UInt8Return.convert_python_to_c()" alt="" coords="120,972,541,1004"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.UnsignedIntParam-class.html#convert_python_to_c" title="inttype.UnsignedIntParam.convert_python_to_c()" alt="" coords="93,1028,568,1060"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.UnsignedIntReturn-class.html#convert_python_to_c" title="inttype.UnsignedIntReturn.convert_python_to_c()" alt="" coords="91,1084,571,1116"/>
<area shape="rect" href="pybindgen.typehandlers.pyobjecttype.PyObjectParam-class.html#convert_python_to_c" title="pyobjecttype.PyObjectParam.convert_python_to_c()" alt="" coords="81,1140,580,1172"/>
<area shape="rect" href="pybindgen.typehandlers.pyobjecttype.PyObjectReturnValue-class.html#convert_python_to_c" title="pyobjecttype.PyObjectReturnValue.convert_python_to_c()" alt="" coords="53,1196,608,1228"/>
<area shape="rect" href="pybindgen.typehandlers.stringtype.CStringParam-class.html#convert_python_to_c" title="stringtype.CStringParam.convert_python_to_c()" alt="" coords="100,1252,561,1284"/>
<area shape="rect" href="pybindgen.typehandlers.stringtype.StdStringParam-class.html#convert_python_to_c" title="stringtype.StdStringParam.convert_python_to_c()" alt="" coords="91,1308,571,1340"/>
<area shape="rect" href="pybindgen.typehandlers.stringtype.StdStringRefParam-class.html#convert_python_to_c" title="stringtype.StdStringRefParam.convert_python_to_c()" alt="" coords="77,1364,584,1396"/>
<area shape="rect" href="pybindgen.typehandlers.stringtype.StdStringReturn-class.html#convert_python_to_c" title="stringtype.StdStringReturn.convert_python_to_c()" alt="" coords="89,1420,572,1452"/>
<area shape="rect" href="pybindgen.typehandlers.voidtype.VoidReturn-class.html#convert_python_to_c" title="voidtype.VoidReturn.convert_python_to_c()" alt="" coords="120,1476,541,1508"/>
</map>
  <img src="call_graph_for_add_parameter_2.gif" alt='' usemap="#call_graph_for_add_parameter_2" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

  <p>Adds a new parameter specification</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>param_template</code></strong> - template item, see documentation for PyArg_ParseTuple for more 
          information</li>
        <li><strong class="pname"><code>param_values</code></strong> - list of parameters, see documentation for PyArg_ParseTuple for 
          more information</li>
        <li><strong class="pname"><code>prepend</code></strong> - whether this parameter should be parsed first</li>
        <li><strong class="pname"><code>optional</code></strong> - whether the parameter is optional; note that after the first 
          optional parameter, all remaining parameters must also be 
          optional</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pybindgen-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Sun Jul 12 17:23:30 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
